<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="utf-8" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ajax-1.0.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery_last.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-impromptu.2.7.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-selected.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.form.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.form.wizard.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.lazyload.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.treeview.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery.validate.js"></script>
<title>原路退款处理</title>
	
</head>
<BODY scroll="yes">
	<DIV class="tableContainer" id="tableContainer">
			<div id="sameTable">
			<table cellspacing="0" class="scrollTable" id="sort-table" style="table-layout: fixed">
				<thead class="fixedHeader" id="fixedHeader">
				<tr>
					<td width="15%" align="center">退款单号</td>
					<td width="15%" align="center">订单号</td>
					<td width="10%" align="center">支付订单号</td>
					<td width="10%" align="center">退款平台</td>
					<td width="10%" align="center">退款申请金额(￥)</td>
					<td width="15%" align="center">退款申请时间</td>
					<td width="10%">退款状态</td>
					<td width="15%">备注</td>
				</tr>
				</thead>
				<tbody class="scrollContent" id="tbody_records">
					<s:if test="#request.result.size()>0">
					<s:iterator var="re" value="#request.result">
					<tr>
					    <td align="center">${re.refundNo}&nbsp; </td>
						<td align="center">${re.orderNo}&nbsp; </td>
						<td align="center">${re.payOrderNo}&nbsp; </td>
						<td align="center">
						<s:if test='#re.bankType eq "10"'>银联</s:if>
						<s:if test='#re.bankType eq "11"'>支付宝</s:if>
						<s:if test='#re.bankType eq "12"'>快钱</s:if>
						<s:if test='#re.bankType eq "19"'>礼品卡</s:if>
						<s:if test='#re.bankType eq "27"'>支付宝POS</s:if>
						<s:if test='#re.bankType eq "25"'>拉卡拉</s:if>
						</td>
						<td align="center">￥<fmt:formatNumber value="${re.refundAmount}" pattern="#,##0.00"/></td>
						<td align="center"> <fmt:formatDate value="${re.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>&nbsp; </td>
						<td align="center">
						<s:if test='#re.refundState eq "A"'>待执行</s:if>
						<s:if test='#re.refundState eq "S"'>成功</s:if>
						<s:if test='#re.refundState eq "B"'>执行待发送ATG</s:if>
						<s:if test='#re.refundState eq "E"'>失败</s:if>
						<s:if test='#re.refundState eq "F"'>异常</s:if>
						<s:if test='#re.refundState eq "L"'>其他状态</s:if>
						<s:if test='#re.refundState eq "N"'>初始化</s:if>
						</td>
						<td align="center">${re.logContent} </td>
					</tr>
					</s:iterator>
					<s:iterator var="st" value="#request.statistics">
					<tr bgcolor="Green">
						<td height="35" align="center"></td>
						<td align="center">共计： &nbsp; </td>
						<td align="center">${st.totalNumber}&nbsp; </td>
						<td align="center">条&nbsp; </td>
						<td align="center">&nbsp;￥ </td>
						<td align="center"><fmt:formatNumber value="${st.totalRefundAmount}" pattern="#,##0.00"/>&nbsp; </td>
						<td align="center">元&nbsp; </td>
						<td height="35" align="center">&nbsp;</td>
					</tr>
					
					</s:iterator>
					</s:if>
					<s:else>
					<tr>
						<td width="3%" colspan="11" height="35" align="center"> <font color="red"> 没有要查询的记录! </font></td>						
					</tr>
					</s:else>
				</tbody>
				</table>
			</div>
		</DIV>
		<tf:RollPage url="refundStatistics_refundStatisticsResults.do?startTime=${request.statistics.startTime}&endTime=${request.statistics.endTime}&refundState=${request.statistics.refundState}&bankType=${request.statistics.bankType}"/>
	</BODY>
</html>
